<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c'%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<jsp:useBean id="now" class="java.util.Date" />
<fmt:formatDate var="year" value="${now}" pattern="yyyy" />
<fmt:formatDate var="month" value="${now}" pattern="MM" />
<fmt:formatDate var="day" value="${now}" pattern="dd" />
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Création noueau tir</title>
</head>
<body>
	
	<form action="/Tir/AddTir"  method="post">
		<div>Nom:<input type="text" name="name" /></div>
		<div>Date:<input type="text" name="day" value="${day}"/>
		/<input type="text" name="month" value="${month}"/>
		/<input type="text" name="year" value="${year}"/></div>
		<input type="submit" id="addButton" value="Créer le tir"/>
	</form>
</body>
</html>